revAppVersion
Type
function
Summary
Returns the version of the LiveCode application.
Syntax
revAppVersion()
Description
Use the revAppVersion function if you need to check which version of the development environment is currently running.
The revAppVersion function is different from the version function. The revAppVersion function returns the version of the development environment, while the version function returns the version of the underlying engine. For example, the contents of the LiveCode menu bar, the LiveCode custom libraries, and the property inspector depend on the revAppVersion, but the features of the LiveCode language depend on the engine version.
In a standalone application the Common library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revAppVersion function is not yet available. This may affect attempts to use this function in startup, preOpenStack, openStack, or preOpenCard handlers in the main stack. Once the application has finished starting up, the library is available and the revAppVersion function can be used in any handler.
Examples
revAppVersion()
if revAppVersion() is not "1.0" then answer "Sorry, Charlie!"
Related
control structure: function
function: version, libURLVersion, buildNumber
glossary: LiveCode, return, main stack, handler, engine, development environment, group, message, application, property inspector, LiveCode custom library
keyword: string
library: Common library, library
message: startup, openBackground, preOpenStack, openStack, preOpenCard
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server